module.exports = (sequelize, Sequelize) => {
  const User = sequelize.define('users', {
    username: {
      type: Sequelize.STRING
    },
    email: {
      type: Sequelize.STRING
    },
    password: {
      type: Sequelize.STRING
    },
    nickName: {
      type: Sequelize.STRING
    },
    realName: {
      type: Sequelize.STRING
    },
    sex: {
      type: Sequelize.INTEGER
    },
    phone: {
      type: Sequelize.STRING
    },
    avatar: {
      type: Sequelize.STRING
    },
    loginIp: {
      type: Sequelize.STRING
    },
    lastLoginTime: {},
    createBy: {
      type: Sequelize.STRING
    },
    updateBy: {
      type: Sequelize.STRING
    }
  })

  return User
}
